package com.xbongbong.pro.formservice.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author 吴峰
 * @date 2021/03/09 15:31
 */
@Getter
@Setter
@ToString
public class FormServicePojo implements Serializable {
    private static final long serialVersionUID = 5572117828849458043L;

    private Long id;

    private String name;

    /**
     * 单据提交
     */
    private Integer commitFlag;
    /**
     * 单据编辑
     */
    private Integer editFlag;
    /**
     * 单据删除
     */
    private Integer deleteFlag;
    /**
     * 单据提交服务id
     */
    private Long commitServiceId;
    /**
     * 单据提交服务参数
     */
    private List<ParamValuePojo> commitServiceParam;
    /**
     * 单据编辑服务id
     */
    private Long editServiceId;
    /**
     * 单据编辑服务参数
     */
    private List<ParamValuePojo> editServiceParam;

    /**
     * 单据删除服务id
     */
    private Long deleteServiceId;

    /**
     * 单据删除服务参数
     */
    private List<ParamValuePojo> deleteServiceParam;

    private Integer sort;

    public FormServicePojo() {
        commitServiceParam = new ArrayList<>();
        editServiceParam = new ArrayList<>();
        deleteServiceParam = new ArrayList<>();
    }

    public FormServicePojo(Long id, String name, Integer commitFlag, Integer editFlag, Integer deleteFlag, Long commitServiceId, List<ParamValuePojo> commitServiceParam, Long editServiceId, List<ParamValuePojo> editServiceParam, Long deleteServiceId, List<ParamValuePojo> deleteServiceParam, Integer sort) {
        this.id = id;
        this.name = name;
        this.commitFlag = commitFlag;
        this.editFlag = editFlag;
        this.deleteFlag = deleteFlag;
        this.commitServiceId = commitServiceId;
        this.commitServiceParam = commitServiceParam;
        this.editServiceId = editServiceId;
        this.editServiceParam = editServiceParam;
        this.deleteServiceId = deleteServiceId;
        this.deleteServiceParam = deleteServiceParam;
        this.sort = sort;
    }
}
